package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.query.QueryContext;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.entity.Dept;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 院方科室 Service
 * </p>
 */

public interface DeptService extends IBaseService<Dept> {
    Integer syncOffice();

    List<Dept> listByUserId(String userId, String deptId);

    Dept findByOfficeSystemCode(String officeSystemCode);

    Page<Map> pageForSelect(QueryContext context, Map<String, Object> userParam);

    /**
    * @Description： 根据仓库查找科室
    */
    Dept getDeptByWarehouseId(String warehouseId, String WarehouseName);

    /**
     * 根据仓库查找科室，找不到也不会报错
     * @param warehouseId
     * @return
     */
    Dept getDeptByWarehouseId(String warehouseId);
}
